<!DOCTYPE html>
<html>
{include file="public/head" /}
<body>
<div class="box-body">
        <form id="myform" class="myform form-horizontal"  method="post" action="{:url('update')}">
          <div class="row">
            <div class="col-md-12">
               <div class="input-group margin">
                <div class="input-group-btn">
                  <span class="btn btn-default form-left-btn">模型标识：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control" name="name" value="{$info['name']|default=''}" autocomplete="off"  required="required" placeholder="请输入文档模型标识">
              </div>
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">模型名称：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control" name="title" value="{$info.title|default=''}"  autocomplete="off"  required="required" placeholder="请输入模型的名称">
              </div> 
               <div class="input-group margin">
                <div class="input-group-btn">
                  <span class="btn btn-default form-left-btn">模型类型：</span>
                </div>
                <!-- /btn-group -->
                <select name="extend" class="form-control select2">
            <option value="2">独立模型</option>
			<option value="1" selected="selected">文章模型</option>
                </select>
              </div>                           
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">引擎类型：</span>
                </div>
                <!-- /btn-group -->
                <select name="engine_type" class="form-control select2">
			<option value="MyISAM">MyISAM</option>
			<option value="InnoDB">InnoDB</option>
            <option value="MEMORY">MEMORY</option>
            <option value="BLACKHOLE">BLACKHOLE</option>
            <option value="MRG_MYISAM">MRG_MYISAM</option>
            <option value="ARCHIVE">ARCHIVE</option>
                </select>
              </div>            
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">需要主键：</span>
                </div>
                <!-- /btn-group -->
                <select name="need_pk" class="form-control select2">
			<option value="1" selected="selected">是</option>
			<option value="0">否</option>
                </select>
              </div> 
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">模型图标：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control" name="icon" value="{$info.icon|default=''}">
              </div>                                                                        
            </div>          
          </div>
          <!-- /.row -->
        <div class="box-footer {notempty name=":request()->param('dialog')"}hidden{/notempty} layer-footer">
          <div  class="footer-btn">
               <button type="submit" class="btn btn-success btn-embossed">确定</button>
               <button type="reset" class="btn btn-default btn-embossed">重置</button>
               {notempty name=":request()->param('dialog')"}
               <button type="reset" class="btn btn-primary btn-embossed btn-close" onClick="layer.closeAll();"> 关闭</button>
               {/notempty}
            </div>
       </div>
       <!-- /.box-footer -->     
</form>
</div>
<!-- /.box-body -->    
{include file="public/footer" /}
<script type="text/javascript">
$(document).ready(function(){
	zanpian.cms.model();
});	
</script>
</body>
</html>
